package com.twu.biblioteca.Persistence;

import com.twu.biblioteca.exception.InvalidMovieRatingException;
import com.twu.biblioteca.library.items.Movie;


/**
 * Created by aruna on 27/4/14.
 */
public class MovieRepository {
    public static final ItemsRepository<Movie> availableList=new ItemsRepository<Movie>();
    public static ItemsRepository<Movie> getMovieSet(){ return availableList;}
    public void populateMovieList()throws InvalidMovieRatingException
    {
        availableList.add(new Movie("TestMovie1",2000, "TestDirector1","UNRATED"));
        availableList.add(new Movie("TestMovie2",2001, "TestDirector2", "1"));
        //System.out.println("Populated"+ListMovies());

    }

}


